package com.airport.ticket.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/admin")
public class IndexController {
	
	@RequestMapping(value = "/")
    public String indexRd(ModelMap map){
		return "redirect:/admin/index.html";
    }
	
	@RequestMapping(value = "/index.html")
    public String index(ModelMap map){
        return "admin/index";
    }
	
}
